package com.example.demo111.mapper;


import com.example.demo111.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import com.example.demo111.entity.Record;

import java.util.List;

@Mapper
public interface UserInfoMapper {

    UserInfo selectByNameAndPwd(String name, String pwd);
    Integer userInsert(UserInfo userInfo);

    Integer userInsertNO(Integer userInfo);

    UserInfo selectUser(String name,String pwd);
    void updatePassword(String name,String pwd,String npwd);

    UserInfo search();

    Record selectVoteInfo(Integer pid,Integer uid);
    void userVote(Integer pid,Integer uid);

    void VoteAdd(Integer num,Integer pid);

}
